package com.swt.draw.dao;

import com.swt.draw.entity.Role;
import com.swt.draw.example.RoleExample;
import java.util.List;

import com.swt.draw.vo.RoleDetailVO;
import org.apache.ibatis.annotations.Param;

public interface RoleMapper {
    long countByExample(RoleExample example);

    int deleteByExample(RoleExample example);

    int deleteByPrimaryKey(String roleNo);

    int insert(Role record);

    int insertSelective(Role record);

    List<Role> selectByExample(RoleExample example);

    Role selectByPrimaryKey(String roleNo);

    int updateByExampleSelective(@Param("record") Role record, @Param("example") RoleExample example);

    int updateByExample(@Param("record") Role record, @Param("example") RoleExample example);

    int updateByPrimaryKeySelective(Role record);

    int updateByPrimaryKey(Role record);

    /*获取角色列表包含权限信息*/
    List<RoleDetailVO> getRoleWithLimit(@Param("role") Role role,@Param("end") Integer end, @Param("start")Integer start);
    /*查询角色总数*/
    Long getRoleCount();
}
